package com.mystudy.leetcode.problem.link.p_237;
import com.mystudy.leetcode.base.ListNode;

/**
 * @author 周志龙
 * @Email 15216876513@163.com
 * @Date on 2019/7/4 0:10
 * @Description leetcode 第237题
 */

class Solution {
    public void deleteNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }
}